package com.biye.api.controller.common;

import com.alibaba.fastjson.JSONObject;
import com.biye.api.service.HatPCAService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping(value = "/common")
public class HatPCAController {

    @Resource
    private HatPCAService hatPCAService;

    @RequestMapping(value = "pca", method = RequestMethod.GET)
    @ResponseBody
    public JSONObject getPCA_json(){
        return hatPCAService.getPCA_json();
    }

}
